<?php
	class indexControl extends Control{
		function index(){
			header("Content-type:text/html;charset=utf8");
			//p(get_defined_constants(true));

			$db =mysql_pconnect("localhost","root","");
			mysql_select_db("c7") or die("数据库连接失败");

			$sql="select * from information";
			mysql_query("set names utf8");
			$result = mysql_query($sql);
			$rows = array();
			while ($row = mysql_fetch_assoc($result)) {
				$rows[]=$row;

				
							}
			
			$this->assign("abc","abc");
			$this->assign("name",$rows);
			$this->display("index.html");
		}
		
	}
?>